package jsu.xxy.coffee3.controller;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.swagger.v3.oas.annotations.Operation;
import jsu.xxy.coffee3.domain.Supplier;
import jsu.xxy.coffee3.domain.SupplierMaterial;
import jsu.xxy.coffee3.mapper.SupplierMaterialMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;
import java.util.Map;

@RestController

@CrossOrigin
@RequestMapping("/supplierMaterial")
public class SupplierMaterialController {

//        Page<Map<String, Object>> page = new Page<>(1, 10);
//        List<Map<String, Object>> resultList = userMapper.selectMapsPage(page, new QueryWrapper<>()).getRecords();
//        QueryWrapper<Supplier> queryWrapper = new QueryWrapper<>();
//
//        Page<Supplier> page = new Page<>(pageNo, pageSize);
//        supplierMapper.selectPage(page, queryWrapper);
//        return page;

}
